﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ctlPeriodTypeSelector.ascx.cs" Inherits="Ctl_ctlPeriodTypeSelector" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<style type="text/css">
    .style1
    {
        width: 37px;
    }
</style>

<table style="width:100%;" cellpadding ="0" cellspacing ="0" >
    <tr>
        <td style ="text-align :right ;font-weight:bold ; " >                    
        <asp:HiddenField ID="hfCurrentPeriodType" Value ="0" runat="server" />
            <asp:HiddenField ID="hfAnchorDay" runat="server" />
            Детализация:
            <asp:Button ID="btnChangeDetailes" runat="server" Width ="100px" Text=<%# PeriodAsString  %> 
                CssClass ="btn_wizard" onclick="btnChangeDetailes_Click" Height="99%" />        
        </td>            
        <td style ="text-align :right ;width :3px; font-weight:bold ; vertical-align:middle " >        
            &nbsp
            </td>            
            
        
        <td style ="width:5px">
            &nbsp
        </td>        
        <td style ="width :190px">
            <asp:MultiView ID="MultiView1" ActiveViewIndex ="0" runat="server">
                <asp:View ID="View1" runat="server">
                    <table style="width:100%; height: 22px;" cellpadding ="0" cellspacing ="0">
                         <tr>
                            <td style="width :85px">
                                <asp:TextBox ID="txtDtStart" CssClass ="TextBox" Text =<%# DtStart.ToShortDateString () %> runat="server"></asp:TextBox>
                                <cc1:CalendarExtender  ID="txtDtStart_CalendarExtender" runat="server" Format="dd.MM.yyyy"
                                    Enabled="True" TargetControlID="txtDtStart">
                                </cc1:CalendarExtender>
                            </td>
                            <td style ="width:10px">
                                &nbsp;
                            </td>
                             <td style ="vertical-align :text-bottom;width:85px">
                                <asp:TextBox ID="txtDtEnd" CssClass ="TextBox" Text =<%# DtEnd.ToShortDateString () %>  runat="server"></asp:TextBox>
                                 <cc1:CalendarExtender ID="txtDtEnd_CalendarExtender" PopupPosition="BottomRight"   runat="server" Format="dd.MM.yyyy"
                                     Enabled="True" TargetControlID="txtDtEnd">
                                 </cc1:CalendarExtender>
                             </td>
                             <td style ="width:5px">
                                &nbsp
                             </td>                             
                <td >
                    &nbsp
                </td>
            </tr>
                    </table>
                </asp:View>
                
                <asp:View ID="View2" runat="server">
                <table style="width:100%;" cellpadding ="0" cellspacing ="0">
                         <tr>
                            <td style="width :85px">
                                <asp:DropDownList ID="cmbFirst" runat="server">
                                </asp:DropDownList>
                            </td>
                            <td style ="width:5px">
                                &nbsp;
                            </td>
                             <td style ="vertical-align :text-bottom;width:85px">
                                 <asp:DropDownList ID="cmbSecond" runat="server">
                                 </asp:DropDownList>
                             </td>
                             <td style ="width:5px">
                                &nbsp
                             </td>                             
                             <td >
                            &nbsp
                            </td>
            </tr>
                    </table>
                </asp:View> 
            </asp:MultiView>
        </td>         
        <td style =" width:28px" >
                <asp:Button ID="btnPrev" Height ="99%" ToolTip =<%# btnPrevNext_Hint (false)  %> CssClass ="btn_wizard"  runat="server" 
                    Text="<<" onclick="btnPrev_Click" Width="28px" />
            </td>
        <td  style =" width:28px" >
            <asp:Button ID="btnNext" Height ="99%" CssClass ="btn_wizard" ToolTip =<%# btnPrevNext_Hint (true)  %>  runat="server" Text=">>" onclick="btnNext_Click" /> 
                             </td>
        <td>
            &nbsp;</td>
    </tr>
</table>

       
                
        

                
                        


